package ru.ssau.customerManagement.view;

import javax.xml.bind.ValidationException;

public final class ClientStub {
    private static ParseValues INSTANCE = new ParseValuesImpl();

    public static String checkObjectID(String objectId) throws ValidationException {
        // if (INSTANCE.isEmpty(objectId) throw new
        // if !(INSTANCE.validateId(objectId))  throw new ValidationException();
        return objectId;
    }

    public static String checkName(String name) throws ValidationException {
        // if (INSTANCE.isEmpty(name) throw new
        // if !(INSTANCE.validateId(name))  throw new ValidationException();
        return name;
    }

    public static String checkLocation(String location) throws ValidationException {
        // if (INSTANCE.isEmpty(location) throw new
        // if !(INSTANCE.validateId(location))  throw new ValidationException();
        return location;
    }

    public static String checkDescription(String decription) throws ValidationException {
        // if (INSTANCE.isEmpty(decription) throw new
        return decription;
    }
}
